home *** CD-ROM | disk | FTP | other *** search
/ Champak 103 / Vol 103.iso / games / uni_cycl.swf / scripts / frame_38 / PlaceObject2_121_75 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2010-03-13  |  607b  |  31 lines

  1. onClipEvent(enterFrame){
  2.    if(this.hitTest(_root.startpoint))
  3.    {
  4.       chal = 0;
  5.    }
  6.    else
  7.    {
  8.       chal = 1;
  9.    }
  10.    _X = _root.dog._x + 3;
  11.    _Y = _root.dog._y + 40;
  12.    if(amitchal == true)
  13.    {
  14.       if(chal == 1)
  15.       {
  16.          if(!_root.br.hitTest(this._x,this._y + 10,true))
  17.          {
  18.             _root.dog.gotoAndStop(3);
  19.             _root.dog.go = false;
  20.             _root.gamego = false;
  21.             _root.cycling = false;
  22.          }
  23.          else
  24.          {
  25.             _root.cycling = true;
  26.             _root.dog.gotoAndStop(2);
  27.          }
  28.       }
  29.    }
  30. }
  31.